<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>before after伪类</title>
		<style>
		#d1:after{
			content: '世界上就这一只了';
			color: mediumspringgreen;
		}
		#d2:before{
			content: '王凯旋是个好同志';
			color: red;
		}
		#d2:hover{
			color:gold;
			font-size: 50px;
			font-weight: 900;
			cursor: pointer;
		}
		a{
			text-decoration: none;
		}
		#d3 a:link{
			color: black;
		}
		#d3 a:visited{
			color: red;
		}
		#d3 a:hover{
			color: pink;
			font-size: 24px;
		}
		#d3 a:active{
			color: gold;
			font-size: 32px;
		}
		div ul li{
			list-style: none;
		}
		</style>
	</head>
	<body>
		<div id="d1">
			教育改变生活
		</div>
		<div id="d2">
			We change lives
		</div>
		
		<div id="d3">
			<a href="https://www.oschina.net" target="_blank">开源中国</a>
			
			<a href="https://kaifa.baidu.com" target="_blank">百度开发版本</a>
			
			<a href="https://www.cnblogs.com" target="_blank">博客园</a>
			 
			<a href="https://www.csdn.net" target="_blank">CSDN</a>
		</div>
		<div>
			<ul>
				<li>111</li>
				<li>222</li>
				<li>333</li>
			</ul>
		</div>
	</body>
</html>
